<%--
  Created by IntelliJ IDEA.
  rowingmanager.domain.User: simon
  Date: 15.6.2009
  Time: 2:03:07
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<div class="box_top"><p>LOGIN HERE</p></div>
<div id="login_box">
    <jsec:isNotLoggedIn>
       <g:form controller="user" action="login">
         <label for="email">Email</label>
         <input class="form_input" id="email" type="text" name="email"/>
         <label for="password">Password</label>
         <input class="form_input" id="password" type="text" name="password"/>
         <br/>
         <div id="button">
            <input class="login_button" type="submit" value="Login"/>
         </div>
       </g:form>
        <g:if test="${flash?.message}"> <!--todo: use jquery to expand login_box, so there will be room for message -->
          <p id="message" style="color:red;">${flash.message}</p>
        </g:if>
     </jsec:isNotLoggedIn>
    <jsec:isLoggedIn>
        You are loged in! todo
    </jsec:isLoggedIn>
</div>